<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
</head>
<body>
<p>文件上传！！！</p>
<form action="/uploadoss/file" enctype="multipart/form-data" method="post">
    <input name="dir" value="bbs">
    <input name="file" type="file">
    <input name="submit" type="submit">
</form>

<script>
    function toupload() {
        alert(11111);
        document.getElementById("uploadform").submit();
    }
</script>

</body>
</html>